import fetch from '../utils/fetch';

////////////////////////////////Actuator//////////////////////////////////////
export const ApiOfStatGatewayCount = () => {
  return fetch({
    url: '/core/api/w/statistics/gateway/count',
    method: 'get'
  })
}
export const ApiOfStatResourceCount = () => {
  return fetch({
    url: '/core/api/w/statistics/resource/count',
    method: 'get'
  })
}
export const ApiOfStatMetricWorkCount = () => {
  return fetch({
    url: '/core/api/w/statistics/metric/count',
    method: 'get'
  })
}
export const ApiOfStatPolicyCount = () => {
  return fetch({
    url: '/policy/api/w/statistics/policy/count',
    method: 'get'
  })
}

export const ApiOfStatActiveResourceCount = () => {
  return fetch({
    url: '/core/api/w/statistics/resource/activeCount',
    method: 'get'
  })
}
export const ApiOfStatActiveMetricWorkCount = () => {
  return fetch({
    url: '/core/api/w/statistics/metric/activeCount',
    method: 'get'
  })
}

export const ApiOfStatPolicyAlarmCount = () => {
  return fetch({
    url: '/policy/api/w/statistics/eventCount/POLICY_ALARM',
    method: 'get'
  })
}
export const ApiOfStatSubsystemAlarmCount = () => {
  return fetch({
    url: '/policy/api/w/statistics/eventCount/SUB_SYSTEM_ALARM',
    method: 'get'
  })
}
